@extends('admin.common.layouts')

@section('style')

    <style>
        .abtn a{
            color:#fff;
            padding:15px;
            line-height:30px;
        }
        .abtn a:hover{
            color:#fff;
            text-decoration:none;
        }
    </style>
@show

@section('content')
  <div class="col-md-12">
    <div class="box">
      @include('admin.common.message')
    
      <!-- 栏目信息 -->
      <div class="box-header with-border">
        <h3 class="box-title">运动员管理</h3>
        <span class="badge bg-blue btn-round abtn" style="float:right;margin-right:15px;"><a href="/admin/sport/athlete/add">新增运动员</a></span>                    
      </div>

      <!-- 内容 -->
      <div class="box-body">
        <table class="table table-bordered">
          <tr>
            <th style="width: 10px">编号</th>
            <th>姓名</th>
            <th>账号</th>
            <th>性别</th>
            <th>出生日期</th>
            <th>身高</th>
            <th>体重</th>
            <th>联系方式</th>
            <th style="width: 40px">操作</th>
          </tr>
          @foreach($data as $vo)
            <tr>
              <td>{{$vo->id}}</td>
              <td>{{$vo->name}}</td>
              <td>{{$vo->login_name}}</td>
              <td>{{$vo->sex}}</td>
              <td>{{$vo->birthday}}</td>
              <td>{{$vo->height}}</td>
              <td>{{$vo->weight}}</td>
              <td>{{$vo->phone}}</td>
              <td>
                <span class="badge btn-round bg-yellow abtn"><a href="{{url('admin/sport/athlete/update',['id' => $vo->id])}}">编辑</a></span>
                <span class="badge btn-round bg-red abtn"><a href="{{url('admin/sport/athlete/remove',['id' => $vo->id])}}" onclick="if (confirm('确定要删除吗？') == false) return false;">删除</a></span>
              </td>
            </tr>
          @endforeach
        </table>
      </div>

      <!-- 分页 -->
      <div class="box-footer clearfix">
        <div class="pull-right">
          {{ $data->render() }}
        </div>
      </div>
    </div>
    <!-- /.box -->
  </div>

@endsection